package com.work.keep.activity;

import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;

import com.work.keep.R;
import com.work.keep.adapter.UserInforActivityAdapter;
import com.work.keep.base.BaseActivity;

/**
 * Created by dllo on 16/1/21.
 */
public class UserInforActivity extends BaseActivity {
    private RecyclerView recyclerView;
    UserInforActivityAdapter userInforActivityAdapter;

    public static void goToUserInforActivity(Context context) {
        Intent intent = new Intent(context, UserInforActivity.class);
        context.startActivity(intent);
    }

    @Override
    protected View getLayoutView() {
        return null;
    }

    @Override
    protected int getLayout() {
        return R.layout.activity_userinfor;
    }

    @Override
    protected void initView() {
        recyclerView = (RecyclerView) findViewById(R.id.userActivityRecycler);
    }

    @Override
    protected void initData() {
        recyclerView.setLayoutManager(new LinearLayoutManager(this));
        userInforActivityAdapter = new UserInforActivityAdapter(this);
        recyclerView.setAdapter(userInforActivityAdapter);

    }
}
